/*重写当宽度大于1280px时固定container的CSS样式*/
@media screen and (min-width: 1280px) {
    .container {
        width: 1280px;
    }
}
/*处理超小屏幕下导航栏的展示*/
@media screen and (max-width: 991px) {
    .nav li {
        float: left;
        width: 20%;
    }
    .row.logo {
        margin-top: 0px;
    }
}
/*超级小屏幕下*/
@media screen and (max-width: 767px) {
    .nav ul li a {
        font-size: 10px;
    }
    .nav a {
        padding-left: 10px;
    }
    .news li:nth-child(1)  {
        width: 100% !important;
        height: 265px;
        /*background-color: pink;*/
    }
    .news li {
        width: 50%!important;
    }
}
/*设置全局的样式*/
body {
    background-color: whitesmoke;
}
.container {
    background-color: white;
    padding-bottom: 30px;
}
ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
a {
    text-decoration: none!important;
}
/*header*/
header {
    /*使用！important提升为最高权重取消默认自带的padding值*/
    padding: 0!important;
}
.logo {
    margin-top: 8px;
    background-color: gold;
}
.logo img {
    /*防止屏幕变小图片显示不完全（设置图片的缩放）*/
    /*width: 100%;*/
    /*阻止图片的缩放（xs超小屏幕的图片缩放）*/
    max-width: 100% ;
    display: block;
    margin: 0 auto;
}
/*超小屏幕下处理logo下的img隐藏掉*/
.logo span {
    display: block;
    height: 100px;
    line-height: 100px;
    color: white;
    text-align: center;
    font-size: 32px;
    text-shadow: 3px 2px 5px black;
}
.nav ul {
    background-color: #cccccc;
}
.nav a {
    /*转换成块级元素才可以设置宽度*/
    display: block;
    height: 50px;
    line-height: 50px;
    font-size: 18px;
    padding-left: 10px;
}
.nav a:hover {
    background-color: white;
    color: #333333;
}
.nav a:before {
    vertical-align: middle;
    padding-right: 5px;
}
/*article*/
.news ul li{
    width: 25%;
    float: left;
    height: 128px;
    padding-right: 10px;
    margin-top: 8px;
}
.news li:nth-child(1)  {
    width: 50%;
    height: 265px;
    /*background-color: pink;*/
}
.news li a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    background-color: darkorchid;
}
.news li a p {
    width: 100%;
    height: 30px;
    position: absolute;
    color: white;
    left: 0;
    line-height: 30px;
    bottom: 0;
    /*取消bootstrap的默认底部margin*/
    margin-bottom: 0;
    background-color: rgba(0,0,0,0.5);
}
.news li:nth-child(1) a p {
    width: 100%;
    height: 30px;
    position: absolute;
    color: white;
    left: 0;
    line-height: 30px;
    bottom: 0;
    /*取消bootstrap的默认底部margin*/
    margin-bottom: 0;
    background-color: rgba(0,0,0,0.5);
}
.publish a img {
    display: block;
    /*width: 100%;*/
    max-width: 100%;
    margin-top: 20px;
}
/*aside*/
.banner {
    position: relative;
}
.banner img {
    margin-top: 8px;
    width: 100%;
    /*max-width: 100%;*/
    background-color: orange;
}
.hot {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #dddddd;
}